package productorconsumidor;


public class Lanzadera {
    public static void main(String[] args) {
        Productor prod = new Productor();
        Consumidor cons = new Consumidor();
        Mesa m = new Mesa();
        
        prod.setMesa(m);
        cons.setMesa(m);
        
        Thread t1 = new Thread(prod);
        Thread t2 = new Thread(cons);
        
        t1.start();
        t2.start();
/*
        Productor prod2 = new Productor();       
        prod2.setMesa(m);        
        Thread t3 = new Thread(prod2);
        t3.start();
*/    
    }

}
